package cn.tedu._03vehicle.mapper;

import cn.tedu._03vehicle.pojo.entity.User;
import cn.tedu._03vehicle.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    /**
     * SELECT id, username FROM user WHERE username=?
     */
    UserVO selectByUsername(String username);

    int insert(User user);

    /**
     * 2.登录功能接口方法
     *   SELECT id, username FROM user WHERE username=? AND password=?
     */
    UserVO selectByUsernameAndPassword(@Param("username") String username,
                                       @Param("password") String password);
}











